package com.models.constant;

/**
 * Created by lewis on 2017/8/26.
 */
public class MessageConstant {
        //Controller用到的常量
        //消息
        public static final String	MSG					= "msg";
        //对象，返回到页面json
        public static final String	OBJECT				= "object";
        //成功标记
        public static final String	SUCCESS				= "success";

        //失败标记
        public static final String	FAILURE				= "failure";

        //保存失败
        public static final String	FAILURE_SAVE		= "保存失败。";

        //删除失败
        public static final String	FAILURE_DELETE		= "删除失败。";

        //保存成功
        public static final String	SUCCESS_SAVE		= "保存成功。";
        //删除成功
        public static final String	SUCCESS_DELETE		= "删除成功。";
        //导入成功
        public static final String	SUCCESS_IMPORT		= "导入成功。";
        //导出成功
        public static final String	SUCCESS_EXPORT		= "导出成功。";
        //提交成功
        public static final String	SUCCESS_SUBMIT		= "提交成功。";
        //操作成功
        public static final String	SUCCESS_OPERATION	= "操作成功。";
        //操作失败
        public static final String	FAILURE_OPERATION   = "操作失败。";

        //成功标记
        public static final int	SUCCESS_0	            = 0;

        //失败标记1
        public static final int	FAILURE_1	            = 1;

        //失败标记2
        public static final int	FAILURE_2	            = 2;

        //系统错误
        public static final String	FAILURE_SYSTEM		= "系统错误，请联系系统管理员。";

    

        //过时的数据编辑，在编辑过程中别人已经编辑并保存过了
        public static final String	FAILURE_OUT_OF_DATE	    = "在你编辑本条数据的过程中，本条数据已被别人编辑并保存过了。";

        public static final String	OUT_OF_DATE		= "OUT_OF_DATE";
}
